package com.magus.project.yddemo.entity;

import javax.persistence.Column;
import javax.persistence.ConstraintMode;
import javax.persistence.Entity;
import javax.persistence.ForeignKey;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.magus.framework.core.entity.BaseEntity;
import com.magus.framework.system.entity.Company;

/**
 * 指标包
 * 
 * @author Zhang JiaWei
 * @date 2018-01-18 15:24
 */
@Entity
@Table(name = "YDDEMO_INDICATOR_PACKAGE")
public class IndicatorPackage extends BaseEntity {

	/**   */
	private static final long serialVersionUID = 1L;

	@Column(name = "NAME_", length = 30)
	private String name;

	@Column(name = "DIMENSION_", length = 20)
	private String dimension;

	@ManyToOne
	@JoinColumn(name = "COMPANY_ID_", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
	private Company company;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDimension() {
		return dimension;
	}

	public void setDimension(String dimension) {
		this.dimension = dimension;
	}

	public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

}
